import request from '@/utils/request'

export function getTreeOrganList(data) {
  return request({
    url: '/api/user/organ/getOrganTree',
    method: 'post',
    data: data
  })
}

export function getPageOrganList(data) {
  return request({
    url: '/api/user/organ/getPageOrganList',
    method: 'post',
    data: data
  })
}

export function getOrganDetail(data) {
  return request({
    url: '/api/user/organ/getUcOrganDetail',
    method: 'post',
    data: data
  })
}

export function addOrgan(data) {
  return request({
    url: '/api/user/organ/saveUcOrgan',
    method: 'post',
    data: data
  })
}

export function delOrgan(data) {
  return request({
    url: '/api/user/organ/updateUcOrgan',
    method: 'post',
    data: data
  })
}

export function updateOrgan(data) {
  return request({
    url: '/api/user/organ/updateUcOrgan',
    method: 'post',
    data: data
  })
}

